package com.code.splider.common.util;

public enum EPanluType {
	AllAll("allall","全部赛事-全部"),
	AllHome("allHome","全部赛事-主客"),
	ThisAll("thisAll","本赛事-全部"),
	TisHome("tisHome","本赛事-主客");
	
	private String key;
	private String value;
	private EPanluType(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public static String getValue(String key) {
		for (EPanluType e : EPanluType.values()) {
			if (e.getKey().equals(key)) {
				return e.value;
			}
		}
		return null;
	}

}
